package com.etime.shycourse.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 此活动为优惠券发放活动的设置。		在项目中的指定操作中，先判断是否有优惠券活动，如果有，则进行优
 * </p>
 *
 * @author wb
 * @since 2022-03-15
 */
@ApiModel(value = "Couponactivity对象", description = "此活动为优惠券发放活动的设置。在项目中的指定操作中，先判断是否有优惠券活动，如果有，则进行优")
public class Couponactivity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "cactivityid", type = IdType.AUTO)
    private Integer cactivityid;

    private Integer activetypeid;

    private String activetitle;

    private String activedesc;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date activebegin;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date activeend;

    @ApiModelProperty(value = "0--不可用	 1--可用")
    private Integer activestate;

    private Integer activeuserid;

    private String activeusername;

    private Date activecreatetime;

    private Integer activeupdateuserid;

    private String activeupdateusername;

    private String couponfiled7;

    private String couponfiled6;

    private Date activeupdatetime;

    private String couponfiled1;
    // 活动是否允许转发 1-允许 2-不允许
    private Integer activeallowdforward;
    //自动发放or手动领取 1--自动发放 2--手动领取 默认手动领取。手动领取，表示有活动的时候，跳转到活动页面，由用户手动进行领取优惠券。
    private Integer activeway;

    private Integer activeallowedre;

    public Integer getActiveallowedre() {
        return activeallowedre;
    }

    public void setActiveallowedre(Integer activeallowedre) {
        this.activeallowedre = activeallowedre;
    }

    public Integer getActiveallowdforward() {
        return activeallowdforward;
    }

    public void setActiveallowdforward(Integer activeallowdforward) {
        this.activeallowdforward = activeallowdforward;
    }

    public Integer getActiveway() {
        return activeway;
    }

    public void setActiveway(Integer activeway) {
        this.activeway = activeway;
    }

    public Integer getCactivityid() {
        return cactivityid;
    }

    public void setCactivityid(Integer cactivityid) {
        this.cactivityid = cactivityid;
    }

    public Integer getActivetypeid() {
        return activetypeid;
    }

    public void setActivetypeid(Integer activetypeid) {
        this.activetypeid = activetypeid;
    }

    public String getActivetitle() {
        return activetitle;
    }

    public void setActivetitle(String activetitle) {
        this.activetitle = activetitle;
    }

    public String getActivedesc() {
        return activedesc;
    }

    public void setActivedesc(String activedesc) {
        this.activedesc = activedesc;
    }

    public Date getActivebegin() {
        return activebegin;
    }

    public void setActivebegin(Date activebegin) {
        this.activebegin = activebegin;
    }

    public Date getActiveend() {
        return activeend;
    }

    public void setActiveend(Date activeend) {
        this.activeend = activeend;
    }

    public Integer getActivestate() {
        return activestate;
    }

    public void setActivestate(Integer activestate) {
        this.activestate = activestate;
    }

    public Integer getActiveuserid() {
        return activeuserid;
    }

    public void setActiveuserid(Integer activeuserid) {
        this.activeuserid = activeuserid;
    }

    public String getActiveusername() {
        return activeusername;
    }

    public void setActiveusername(String activeusername) {
        this.activeusername = activeusername;
    }

    public Date getActivecreatetime() {
        return activecreatetime;
    }

    public void setActivecreatetime(Date activecreatetime) {
        this.activecreatetime = activecreatetime;
    }

    public Integer getActiveupdateuserid() {
        return activeupdateuserid;
    }

    public void setActiveupdateuserid(Integer activeupdateuserid) {
        this.activeupdateuserid = activeupdateuserid;
    }

    public String getActiveupdateusername() {
        return activeupdateusername;
    }

    public void setActiveupdateusername(String activeupdateusername) {
        this.activeupdateusername = activeupdateusername;
    }

    public String getCouponfiled7() {
        return couponfiled7;
    }

    public void setCouponfiled7(String couponfiled7) {
        this.couponfiled7 = couponfiled7;
    }

    public String getCouponfiled6() {
        return couponfiled6;
    }

    public void setCouponfiled6(String couponfiled6) {
        this.couponfiled6 = couponfiled6;
    }

    public Date getActiveupdatetime() {
        return activeupdatetime;
    }

    public void setActiveupdatetime(Date activeupdatetime) {
        this.activeupdatetime = activeupdatetime;
    }

    public String getCouponfiled1() {
        return couponfiled1;
    }

    public void setCouponfiled1(String couponfiled1) {
        this.couponfiled1 = couponfiled1;
    }

    @Override
    public String toString() {
        return "Couponactivity{" +
                "cactivityid=" + cactivityid +
                ", activetypeid=" + activetypeid +
                ", activetitle=" + activetitle +
                ", activedesc=" + activedesc +
                ", activebegin=" + activebegin +
                ", activeend=" + activeend +
                ", activestate=" + activestate +
                ", activeuserid=" + activeuserid +
                ", activeusername=" + activeusername +
                ", activecreatetime=" + activecreatetime +
                ", activeupdateuserid=" + activeupdateuserid +
                ", activeupdateusername=" + activeupdateusername +
                ", couponfiled7=" + couponfiled7 +
                ", couponfiled6=" + couponfiled6 +
                ", activeupdatetime=" + activeupdatetime +
                ", couponfiled1=" + couponfiled1 +
                "}";
    }
}
